package com.example.demo.liteflow;

import com.example.demo.entity.Person;
import com.yomahub.liteflow.core.NodeComponent;
import org.springframework.stereotype.Component;

@Component("a")
public class ACmp extends NodeComponent {

    @Override
    public void process() {
        Person person = this.getRequestData();
        Person personContext = this.getContextBean(Person.class);
        personContext.setId("1111");
        System.out.println(person.toString());
        person.setName("李四");
        //do your business
    }
}
